const KEY = "my-token";
//获取token
export const getToken = () => {
  return localStorage.getItem(KEY);
};
//存储token
export const setToken = (newToken) => {
  return localStorage.setItem(KEY, newToken);
};
//删除token
export const delToken = () => {
  return localStorage.removeItem(KEY);
};
